<template>
  <j-modal title="视频预览" width="800px" :visible.sync="visible" okText="确定" @ok="handleOk" @cancel="handleOk">
    <video width="725px" :url='url' ref="viedoPlayer"></video>
  </j-modal>
</template>

<script>
//分享modal
import { postAction } from '@/api/manage'
import 'xgplayer'
import Player from 'xgplayer-hls'

export default {
  name: 'MovieModalSmall',
  data() {
    return {
      visible: false,
      item: {},
      player: null,
      url:''
    }
  },
  created() {},
  mounted() {},
  methods: {
    show(item) {
      this.item = item
      this.visible = true
      this.url = item.fileUrl

    },
    handleOk() {
      // this.player.destroy(true)
      this.visible = false
    }
  }
}
</script>

<style scoped>
#mse {
  width: 752px;
}

video {
  
}
</style>
